﻿* Encoding: UTF-8.
*Dual Citizenship and Tolerance Manuscript.
*Verkuyten, Gale, Yogeeswaran, Adelman. 
*Journal of Experimental Political Science
*SPSS Syntax.

*Applying weights.
WEIGHT BY weight.

*Checking frequencies for gender, education, political orientation.
FREQUENCIES VARIABLES=GSL OPL V051
  /ORDER=ANALYSIS.

*Recoding gender so that 0=women, 1=men.
RECODE GSL (2=0) (1=1) INTO GSL_R.
VARIABLE LABELS  GSL_R 'women=0, men=1'.
EXECUTE.

*Checking gender recode.
FREQUENCIES VARIABLES=GSL GSL_R
  /ORDER=ANALYSIS.

*Checking descriptive statistics for age and political orientation.
DESCRIPTIVES VARIABLES=LFT V051
  /STATISTICS=MEAN STDDEV MIN MAX.


*Contrast-coding for experimental conditions.
*Recoding so that emotional condition coded .67, instrumental and control condition both coded -.33.
RECODE V004 (8=.67) (9=-.33) (10=-.33) INTO CC_1.
VARIABLE LABELS  CC_1 'Emotional (.67) vs. Instrumental and Control (-.33)'.
EXECUTE.

*Recoding so that instrumental condition coded .50, control condition coded -.50, Emotional condition coded 0.
RECODE V004 (8=0) (9=.50) (10=-.50) INTO CC_2.
VARIABLE LABELS  CC_2 'Instrumental (.50) vs Control (-.50), Emotional coded 0'.
EXECUTE.

*Recoding to be able to compare the experimental conditions to each other (without the control condition).
*Instrumental condition coded -1, Emotional condition coded 1.
RECODE V004 (8=1) (9=-1) (10=99) INTO Emo_Inst.
VARIABLE LABELS  Emo_Inst 'Emotional (1) vs Instrumental (-1) conditions'.
EXECUTE.

missing values Emo_Inst (99).

*Checking that recoding functioned properly (as well as n by condition).
FREQUENCIES VARIABLES=Emo_Inst V004
  /ORDER=ANALYSIS.


*Checking demographic characteristics by condition (see Supplemental Appendix).
SORT CASES  BY V004.
SPLIT FILE LAYERED BY V004.

FREQUENCIES VARIABLES=GSL OPL V051
  /ORDER=ANALYSIS.

DESCRIPTIVES VARIABLES=LFT V051
  /STATISTICS=MEAN STDDEV MIN MAX.
